﻿<UserControl x:Class="InsuranceAdjuster.Controls.PanelViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:this="clr-namespace:InsuranceAdjuster.Controls"
    mc:Ignorable="d"
    d:DesignHeight="317" d:DesignWidth="320" HorizontalAlignment="Left" VerticalAlignment="Top">
    <UserControl.Resources>
        <Style x:Key="HighlightedPolygon" TargetType="Polygon">
            <Setter Property="StrokeThickness" Value="5.0" />
            <Setter Property="Stroke" Value="#ff735711" />
            <Setter Property="Fill" Value="#FFF5BBA5" />
            <Setter Property="StrokeMiterLimit" Value="1.0" />
        </Style>
        <Style x:Key="NormalPolygon" TargetType="Polygon">
            <Setter Property="StrokeThickness" Value="3.0" />
            <Setter Property="Stroke" Value="Black" />
            <Setter Property="Fill" Value="White" />
            <Setter Property="StrokeMiterLimit" Value="1.0" />
        </Style>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" HorizontalAlignment="Left" VerticalAlignment="Top">
        <Viewbox HorizontalAlignment="Center" VerticalAlignment="Center">
            <Canvas x:Name="FourDoor" Tag="Four Door Car"  Width="640" Height="876" Margin="10" >

                <this:PanelShape Click="PanelShape_Click" PanelName="Roof">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points=" 395.320,604.854 395.320,604.854 335.696,600.207 311.449,600.365 287.188,600.504 221.110,604.854 221.110,604.854 221.110,345.832 221.110,345.832 278.372,350.370 309.237,350.320 340.106,350.279 395.320,345.832 395.320,345.832 395.320,604.854 " />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points=" 395.320,604.854 395.320,604.854 335.696,600.207 311.449,600.365 287.188,600.504 221.110,604.854 221.110,604.854 221.110,345.832 221.110,345.832 278.372,350.370 309.237,350.320 340.106,350.279 395.320,345.832 395.320,345.832 395.320,604.854 " />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Trunk">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="420.576,870.950 420.576,870.950 348.925,875.434 308.134,875.434 267.351,875.434 197.958,870.950 197.958,870.950 189.140,693.696 189.140,693.696 249.707,698.225 308.134,698.182 366.562,698.135 429.401,693.696 429.401,693.696 420.576,870.950 " />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="420.576,870.950 420.576,870.950 348.925,875.434 308.134,875.434 267.351,875.434 197.958,870.950 197.958,870.950 189.140,693.696 189.140,693.696 249.707,698.225 308.134,698.182 366.562,698.135 429.401,693.696 429.401,693.696 420.576,870.950  " />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Passenger Fender">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="448.811,286.112 430.500,33.833 484.280,36.602 615.299,128.092 615.299,155.024 615.299,155.024 536.615,141.558 535.922,217.862 535.228,294.167 615.299,285.189 615.299,285.189 615.299,320.075 494.777,320.075 448.811,286.112" />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="448.811,286.112 430.500,33.833 484.280,36.602 615.299,128.092 615.299,155.024 615.299,155.024 536.615,141.558 535.922,217.862 535.228,294.167 615.299,285.189 615.299,285.189 615.299,320.075 494.777,320.075 448.811,286.112" />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Driver Fender">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="167.988,286.112 186.299,33.833 132.519,36.602 1.500,128.092 1.500,155.024 1.500,155.024 80.185,141.558 80.877,217.862 81.571,294.167 1.500,285.189 1.500,285.189 1.500,320.075 122.021,320.075 167.988,286.112" />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="167.988,286.112 186.299,33.833 132.519,36.602 1.500,128.092 1.500,155.024 1.500,155.024 80.185,141.558 80.877,217.862 81.571,294.167 1.500,285.189 1.500,285.189 1.500,320.075 122.021,320.075 167.988,286.112" />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Driver Front Door">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="154.391,366.662 154.391,472.581 2.669,472.581 2.669,332.295 122.481,332.295 154.391,366.662" />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="154.391,366.662 154.391,472.581 2.669,472.581 2.669,332.295 122.481,332.295 154.391,366.662" />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Driver Rear Door">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="154.391,588.213 154.391,485.295 2.669,485.295 2.669,621.081 122.481,621.081 154.391,588.213" />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="154.391,588.213 154.391,485.295 2.669,485.295 2.669,621.081 122.481,621.081 154.391,588.213" />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Driver Roof Rail">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="168.087,361.048 168.087,591.588 154.269,608.467 195.560,642.409 209.589,606.500 209.589,341.295 171.398,297.913 134.672,326.306 168.087,361.048" />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="168.087,361.048 168.087,591.588 154.269,608.467 195.560,642.409 209.589,606.500 209.589,341.295 171.398,297.913 134.672,326.306 168.087,361.048" />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Driver Quarter">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="176.947,693.651 185.776,871.891 35.807,871.891 2.735,817.081 2.735,785.663 2.735,785.663 86.516,798.010 86.516,729.559 86.516,661.103 2.735,671.202 2.735,671.202 2.735,634.179 70.777,634.179 127.778,634.179 146.527,616.255 191.593,652.137 176.947,693.651" />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="176.947,693.651 185.776,871.891 35.807,871.891 2.735,817.081 2.735,785.663 2.735,785.663 86.516,798.010 86.516,729.559 86.516,661.103 2.735,671.202 2.735,671.202 2.735,634.179 70.777,634.179 127.778,634.179 146.527,616.255 191.593,652.137 176.947,693.651" />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Passenger Front Door">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="464.367,366.662 464.367,472.581 616.089,472.581 616.089,332.295 496.276,332.295 464.367,366.662" />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="464.367,366.662 464.367,472.581 616.089,472.581 616.089,332.295 496.276,332.295 464.367,366.662" />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Passenger Rear Door">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="464.367,588.213 464.367,485.295 616.089,485.295 616.089,621.081 496.276,621.081 464.367,588.213" />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="464.367,588.213 464.367,485.295 616.089,485.295 616.089,621.081 496.276,621.081 464.367,588.213" />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Passenger Roof Rail">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="450.671,361.048 450.671,591.588 464.489,608.467 423.198,642.409 409.169,606.500 409.169,341.295 447.359,297.913 484.086,326.306 450.671,361.048" />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="450.671,361.048 450.671,591.588 464.489,608.467 423.198,642.409 409.169,606.500 409.169,341.295 447.359,297.913 484.086,326.306 450.671,361.048" />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Passenger Quarter">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="441.811,693.651 432.981,871.891 582.951,871.891 616.022,817.081 616.022,785.663 616.022,785.663 532.242,798.010 532.242,729.559 532.242,661.103 616.022,671.202 616.022,671.202 616.022,634.179 547.980,634.179 490.979,634.179 472.230,616.255 427.165,652.137 441.811,693.651 " />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="441.811,693.651 432.981,871.891 582.951,871.891 616.022,817.081 616.022,785.663 616.022,785.663 532.242,798.010 532.242,729.559 532.242,661.103 616.022,671.202 616.022,671.202 616.022,634.179 547.980,634.179 490.979,634.179 472.230,616.255 427.165,652.137 441.811,693.651 " />
                    </this:PanelShape.Highlight>
                </this:PanelShape>
                <this:PanelShape Click="PanelShape_Click" PanelName="Hood">
                    <this:PanelShape.Normal>
                        <Polygon Style="{StaticResource NormalPolygon}" Points="418.725,30.605 418.725,30.605 362.560,1.500 305.441,1.500 248.323,1.500 198.156,30.605 198.156,30.605 179.592,282.021 179.592,282.021 243.565,277.313 303.539,277.655 363.512,277.998 435.860,282.021 435.860,282.021 418.725,30.605" />
                    </this:PanelShape.Normal>
                    <this:PanelShape.Highlight>
                        <Polygon Style="{StaticResource HighlightedPolygon}" Points="418.725,30.605 418.725,30.605 362.560,1.500 305.441,1.500 248.323,1.500 198.156,30.605 198.156,30.605 179.592,282.021 179.592,282.021 243.565,277.313 303.539,277.655 363.512,277.998 435.860,282.021 435.860,282.021 418.725,30.605" />
                    </this:PanelShape.Highlight>
                </this:PanelShape>

                <Polygon StrokeThickness="3.0" Stroke="#ff000000" StrokeMiterLimit="1.0" Fill="#ffb1b1b1" Points=" 224.359,336.806 224.359,336.806 272.856,341.295 305.929,341.295 339.003,341.295 394.128,336.806 394.128,336.806 438.220,290.804 438.220,290.804 347.823,286.315 307.040,286.315 266.249,286.315 180.262,290.804 180.262,290.804 224.359,336.806 "
                     Tag="Front Windshield" />
                <Polygon StrokeThickness="3.0" Stroke="#ff000000" StrokeMiterLimit="1.0" Fill="#ffb1b1b1" Points=" 396.333,615.100 396.333,615.100 340.106,610.614 307.034,610.614 273.965,610.614 219.949,615.100 219.949,615.100 193.494,683.549 193.494,683.549 261.841,688.039 307.040,688.039 352.232,688.039 422.785,683.549 422.785,683.549 396.333,615.100 "
                     Tag="Rear Windshield" />

            </Canvas>
        </Viewbox>
    </Grid>
</UserControl>
